package com.dly.hope.repository;

import com.dly.hope.workflow.ProcessInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Set;

/**
* @Name: ProcessInfoRepository
* @Description:
* @Author: Danny Chen
* @Date: 2022/1/18
*/
public interface ProcessInfoRepository extends JpaRepository<ProcessInfo, String> {

    ProcessInfo findByNameAndDataStatus(String name, Integer status);

    List<ProcessInfo> findByNameInAndDataStatus(Set<String> names, Integer status);

}
